package com.pureut.production.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.OperationProcess;
import com.pureut.production.domain.dto.GetProcessDto;
import com.pureut.production.domain.dto.OperationProcessDto;
import com.pureut.production.domain.vo.OperationProcessVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: CM
 * @date: 2023/2/8    14:47
 */
@Mapper
public interface OperationProcessMapper extends BaseMapper<OperationProcess> {

    /**
     * 工艺流程列表查询
     * @param operationProcessVo
     * @return
     */
    List<OperationProcessDto> getProcessList(@Param("operationProcessVo") OperationProcessVo operationProcessVo);

    /**
     * 根据生产阶别查出工艺流程列表
     * @return
     */
    List<GetProcessDto> getProcess(String productionLevel);

    /**
     * 根据线别查看工艺流程列表
     * @param productionLineDict
     * @return
     */
    List<OperationProcessDto> getLine(String productionLineDict);
}
